/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package vmcs.controller.statePattern;

/**
 *
 * @author Eileen
 */
class MaintenanceState extends VmcsState {    
    MaintenanceState(TransactionController fsm){
        this.m_fsm = fsm;
    }
    @Override
    public void OnSelectDrink() {
        System.out.println("MaintenanceState::On Select drink");
    }    
    @Override
    public void OnTerminate() {
        System.out.println("MaintenanceState::On terminate");
    }    
    @Override
    public void OnGiveChange() {
        System.out.println("MaintenanceState::On give change");
    }    
    @Override
    public void OnDispenseDrink() {
        System.out.println("MaintenanceState::On dispense drink");
    }
    @Override
    public void OnMaintenance() {
        System.out.println("MaintenanceState::On Maintenance mode");
        if(m_fsm.getMaintenanceFlag()){
            m_fsm.changeState(TransactionController.DRINK_SEL);
            m_fsm.setActivateDrinkPanel(false);
            m_fsm.setActivateCoinPanel(false);
            m_fsm.clearDrinkSelection();
        }
        
    }
    @Override
    public void OnReceiveCoin() {
        System.out.println("MaintenanceState::On Receive Coin");
    }
    @Override
    public void OnStoreCoin() {
        System.out.println("MaintenanceState::On Receive Coin");
    }
}
